import request from '@/utils/request'

// 首页信息
export function findHomePageInformation() {
  return request({
    url: '/broker/broker/findHomePageInformation',
    method: 'post'
  })
}

// 查找所有消息
export function findMessageList() {
  return request({
    url: '/broker/broker/findMessagePage',
    method: 'post'
  })
}

// 查找特定聊天记录
export function sendMessage(data) {
  return request({
    url: '/broker/broker/sendMessage',
    method: 'post',
    data
  })
}

// 查找特定聊天记录
export function findUser() {
  return request({
    url: '/broker/broker/findUser',
    method: 'post'
  })
}

// 查找特定聊天记录
export function findNewMessage(data) {
  return request({
    url: '/broker/broker/findMessageRecordByOne',
    method: 'post',
    data
  })
}
